using System;

namespace RapidHDL
{
	/// <summary>
	/// Summary description for Utility.
	/// </summary>
	public class Utility
	{
		public Utility()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public static string StringRepeat(string poBaseString, int piRepeat)
		{
			string sResult = "";

			if (poBaseString.Length == 1)
				return sResult.PadLeft(piRepeat,poBaseString[0]);
			
			for (int iIndex = 0; iIndex < piRepeat; iIndex++)
			{
				sResult += piRepeat;
			}
			return sResult;
		}
	}
}
